package com.jdk.base.object;

import java.util.StringJoiner;

/**
 * ClassName: User
 * Description:
 * Date: 2022/5/30 21:50 【需求编号】
 *
 * @author Sam Sho
 * @version V1.0.0
 */
public class User {

    private String name;
    private int age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", User.class.getSimpleName() + "[", "]")
                .add("name='" + name + "'")
                .add("age=" + age)
                .toString();
    }
}
